home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / water_ba.swf / scripts / DefineSprite_379_grassback / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-21  |  462 b   |  30 lines

  1. audio.onPress = function()
  2. {
  3.    audclik = [1,2];
  4.    if(click == 1)
  5.    {
  6.       click = 0;
  7.    }
  8.    else
  9.    {
  10.       click++;
  11.    }
  12.    audio.gotoAndStop(audclik[click]);
  13.    if(audclik[click] == 2)
  14.    {
  15.       _root.globalsoundcontrol.setVolume(0);
  16.    }
  17.    else
  18.    {
  19.       _root.globalsoundcontrol.setVolume(100);
  20.    }
  21. };
  22. audio.onRollOver = function()
  23. {
  24.    _root.holdit = true;
  25. };
  26. audio.onRollOut = function()
  27. {
  28.    _root.holdit = false;
  29. };
  30.